package com.dl.study.config.propertites;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: user
 * @Date: 2021/10/25 09:23
 * @Description:
 */

@ConfigurationProperties(prefix = "token")
@Data
@Component
public class JwtProperties {
    public String encryptAESKey;
    public String encryptJWTKey;
    /**
     * token过期时间，单位分钟
     */
    public Integer accessTokenExpireTime;
    /**
     * 刷新Token过期时间，单位分钟
     */
    public Integer refreshTokenExpireTime;
    /**
     * Shiro缓存有效期，单位分钟
     */
    public Integer shiroCacheExpireTime;
    /**
     * token加密密钥
     */
    public String secretKey;
}
